﻿using System;
using System.Text;

namespace mfRCF.Rss
{
    public class Item
    {
        public Item() 
        {
            guid = Guid.NewGuid().ToString();
        }

        public string title { get; set; }
        public string link { get; set; }
        public string description { get; set; }
        public DateTime pubDate { get; set; }
        public string guid { get; set; }

        public override string ToString()
        {
            StringBuilder s = new StringBuilder();
            s.AppendLine("item :");
            s.AppendLine("title: " + title);
            s.AppendLine("link: " + link);
            s.AppendLine("description: " + description);
            s.AppendLine("pubDate: " + pubDate);
            s.AppendLine("guid: " + guid);

            return s.ToString();
        }
    }
}
